package team.zero.lemon.pattern.Factory;

/**
 * Created by bolin on 2016/12/6.
 */
public class OutputFactory {
    public Output getPrinterOutput(String type) {
        if (type.equalsIgnoreCase("better")) {
            return new BetterPrinter();
        } else {
            return new Printer();
        }
    }

}
